package cn.chuengxu.controller;

import cn.chuengxu.domain.User;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Value("${server.port}")
    private int ip;



    @GetMapping("/getUserById/{id}")
    public User getUserById(@PathVariable Long id){

        return User.builder().id(id).username("张三").email("四川成都" +ip).build();
    }



}
